package com.singfee.gisservice.service.impl;

import com.singfee.gisservice.entity.Render;
import com.singfee.gisservice.mapper.RenderMapper;
import com.singfee.gisservice.service.IRenderServer;
import io.micrometer.common.util.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class RenderServerImpl implements IRenderServer {
    @Autowired
    RenderMapper renderMapper;

    @Override
    public List<Map> selectRenderList() {
        return renderMapper.selectRenderList();
    }

    @Override
    public List<Map> selectLayerRender(Render render) {

        return renderMapper.selectRender(render);
    }

    @Override
    public int insertLayerRender(Render render) {
        return renderMapper.insertRender(render);
    }

    @Override
    public int updateLayerRender(Render render) {
        return renderMapper.updateRender(render);
    }

    @Override
    public int deleteLayerRender(Render render) {
        return delRenderById(render.getId());
    }

    @Override
    public int deleteRenderByIds(Long[] ids) {
        return renderMapper.deleteRenderByIds(ids);
    }

    @Override
    public int delRenderById(Long id) {
        return renderMapper.deleteRenderById(id);
    }


}
